package com.dchh.android.suverynew.presenter.impl;

import com.dchh.android.suverynew.module.local.ITzpPhotoMoudle;
import com.dchh.android.suverynew.module.local.impl.TzpPhotoMoudle;
import com.dchh.android.suverynew.presenter.ITzpPhotoPresenter;
import com.dchh.android.suverynew.view.ITzpPhotoView;
import com.dhcc.android.base.common.bean.ImageInfoBean;
import com.dhcc.android.base.db.DBManagerUtil;
import com.dhcc.android.base.utils.PhotoUtil;

import java.util.List;
import java.util.Map;

/**
 * Created by eric on 2016/8/14.
 */
public class TzpPhotpPresenter implements ITzpPhotoPresenter, TzpPhotoMoudle.TzpPhotoMoudleListener {
    private ITzpPhotoView mTzpPhotoView;
    private ITzpPhotoMoudle mTzpPhotoMoudle;

    public TzpPhotpPresenter(ITzpPhotoView mTzpPhotoView) {
        this.mTzpPhotoView = mTzpPhotoView;
        this.mTzpPhotoMoudle = new TzpPhotoMoudle(this);
    }


    @Override
    public void getInitDatas(int type, String taskName, String CUNMING, String dcqb,
                             String YFBHU, String tableName, String dbPath,
                             DBManagerUtil dbManagerUtil, PhotoUtil photoUtil) {
        mTzpPhotoMoudle.getInitData(type, taskName, CUNMING, dcqb, YFBHU, tableName, dbPath, dbManagerUtil, photoUtil);
    }

    @Override
    public void savePhoto(String imageName, String beizhu) {

    }

    @Override
    public void onInitData(List<Map<String, String>> datas, List<ImageInfoBean> imageInfoList) {

    }
}
